package org.jeecg.modules.wlhy.hycustomerbank.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @Description: 货主银行卡信息
 * @Author: duanlikao
 * @Date:   2020-12-15
 * @Version: V1.0
 */
@Data
@TableName("hy_customer_bank")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_customer_bank对象", description="货主银行卡信息")
public class HyCustomerBank implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**货主id*/
	@Excel(name = "所属货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
	@Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "所属货主")
    //@NotEmpty(message = "所属货主不允许为空")
    private java.lang.String customerId;
	/**用户id*/
//	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private java.lang.String userId;
	/**开户行账户*/
	@Excel(name = "账户名称", width = 15)
    @ApiModelProperty(value = "账户名称")
    @NotEmpty(message = "账户名称不允许为空")
    private java.lang.String bankName;
	/**开户行账号*/
	@Excel(name = "银行卡号", width = 15)
    @ApiModelProperty(value = "银行卡号")
    @NotEmpty(message = "银行卡号不允许为空")
    private java.lang.String bankNum;
    /**开户行类型*/
    @Excel(name = "银行名称", width = 15, dictTable = "hy_bank", dicText = "bank_name", dicCode = "bank_type")
    @Dict(dictTable = "hy_bank", dicText = "bank_name", dicCode = "bank_type")
    @ApiModelProperty(value = "开户行类型")
    @NotEmpty(message = "开户行不允许为空")
    private java.lang.String bankType;

	/**开户手机号*/
	@Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
//    @NotEmpty(message = "开户手机号不允许为空")
    private java.lang.String bankPhone;

    @Excel(name = "身份证", width = 15)
    @ApiModelProperty(value = "身份证")
    private java.lang.String  idcard;

	/**是否启动(1表示是 0表示否)*/
//	@Excel(name = "是否启动", width = 15)
    @ApiModelProperty(value = "是否启动(1表示是 0表示否)")
    private java.lang.String izUsed;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**删除状态(0-正常,1-已删除)*/

//    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
//    private java.lang.String delFlag;

    @ApiModelProperty(value = "银行卡正面照片")
    private java.lang.String bankImgFront;
}
